package com.tzstcl.sys.user.service.impl;

import com.tzstcl.base.service.impl.BaseServiceImpl;
import com.tzstcl.sys.user.mapper.SysUserRoleMapper;
import com.tzstcl.sys.user.model.SysUserRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author haocj
 * 角色权限service
 */
@Service
public class SysUserRoleService extends BaseServiceImpl<SysUserRoleMapper, SysUserRole> {

    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;

    public SysUserRole get(Long id) {
        return sysUserRoleMapper.getOne(id);
    }

    public SysUserRole get(SysUserRole sysUserRole) {
        return sysUserRoleMapper.get(sysUserRole);
    }

    public List<SysUserRole> findList(SysUserRole sysUserRole) {
        return sysUserRoleMapper.findList(sysUserRole);
    }

}
